<template>
  <div>
    <!-- el-input:输入框组件  v-model:表单元素值的双向绑定  prefix-icon:输入框头部图标  show-password:密码显示-->
    <el-input
      class="hminput"
      v-model="input"
      placeholder="请输入用户名"
      prefix-icon="el-icon-user"
    ></el-input>
    <el-input
      class="hminput"
      v-model="password"
      placeholder="请输入密码"
      prefix-icon="el-icon-lock"
      show-password
    ></el-input>
    <el-input
      show-password
      class="hminput"
      v-model="repassword"
      placeholder="请确认密码"
      prefix-icon="el-icon-lock"
    ></el-input>
  </div>
</template>
<script>
export default {
  data () {
    return {
      input: '',
      password: '',
      repassword: ''
    }
  }
}
</script>
<style lang="less" scoped>
.hminput {
  width: 300px;
  margin-bottom: 20px;
  display: block;
}
</style>
